<?php
	require "../modules/conn.php";
	session_start();
	$sid=$_SESSION["sid"];
	$uid=$_SESSION["uid"];
	$sql1="select * from t_watch where w_sell_id=$sid and w_user_id=$uid";
	$result1=mysqli_query($conn,$sql1);
	if($result1){
		if(mysqli_num_rows($result1)){
			echo "watched";
		}		
	}else{
		echo "error";
	}
?>